﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Player" Object="Player" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="player_edit" data-title="编辑播放器" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString['ID']%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">播放器列表</a> → <b class="<%=ContentLang%>Font"><%=Player[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
 		<div class="post-body">
           <table class="post-table margin2">
                <tr>
                    <th>名称：</th>
                    <td><input type="text" name="Name" value="<%=Player[Name]%>" size="30" maxlength="50" class="ali-input <%=ContentLang%>Font"> Guid：<%=Player[ID]%></td>
                </tr>
                <tr>
                    <th>代码：</th>
                    <td>
                        {#ID#} : 播放器ID<br />
                        {#File#} : 文件路径<br />
                        <textarea type="text" name="Code" cols="80" rows="10" wrap="off"><%=HttpUtility.HtmlEncode(Convert.ToString(Player[Code]))%></textarea>
                    </td>
                </tr>
                <tr>
                    <th>打包扩展名：</th>
                    <td><input type="text" name="PackExtention" value="<%=Player[PackExtention]%>" size="10" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
                </tr>
                <tr>
                    <th>打包：</th>
                    <td>
                        {#Name#}：媒体名称<br />
                        {#URL#}：媒体地址<br />
                        <textarea type="text" name="Pack" cols="80" rows="10" wrap="off"><%=Player[Pack]%></textarea>
                    </td>
                </tr>
                <tr>
                    <th>文件：</th>
                    <td>
                        <input type="text" name="File" value="<%=Player[File]%>" size="60" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
                  </td>
                </tr>
                <tr>
                    <th>规则：</th>
                    <td>
                        <textarea type="text" name="Rule" cols="80" rows="4" wrap="off"><%=HttpUtility.HtmlEncode(Convert.ToString(Player[Rule]))%></textarea>
                        <ul>
                            <li>播放页面地址中获取播放地址的规则。</li>
                            <li>一行或三行。如果只从播放页面地址中能获取播放地址，则写一行正则表达式。</li>
                            <li>如果页面内容中获取播放地址，则第一行正则表达式获取网页地址，第二行是编码（GB2312，BIG5，UTF-8），第三行正则表达式从网页内容中获取播放地址。</li>
                            <li>每一行正则表达式可用组名"v"。</li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <th>类型：</th>
                    <td>
                        <%If String.Equals(Player[Type], "Video")%>
                            <label><input type="radio" name="Type" value="Video" checked>视频播放器</label>
                            <label><input type="radio" name="Type" value="Audio">音乐播放器</label>
                        <%Else%>
                            <label><input type="radio" name="Type" value="Video">视频播放器</label>
                            <label><input type="radio" name="Type" value="Audio" checked>音乐播放器</label>
                        <%EndIf%>
                    </td>
                </tr>
                <tr>
                    <th>描述：</th>
                    <td><textarea type="text" name="Description" cols="80" rows="10" wrap="off" class="ali-input <%=ContentLang%>Font"><%=Player[Description]%></textarea></td>
                </tr>
            </table>
        </div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>